package com.hundun.hddeal.service.lmpl;

import com.hundun.hddeal.dao.GzhTypeMapper;
import com.hundun.hddeal.entity.GzhType;
import com.hundun.hddeal.response.Result;
import com.hundun.hddeal.response.ResultUtil;
import com.hundun.hddeal.service.GzhTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 公众号类型业务层
 * @author 谢
 */
@Service
public class GzhTypeServiceImpl implements GzhTypeService {

    @Autowired
    GzhTypeMapper gzhTypeMapper;


    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(GzhType record) {
        return 0;
    }

    @Override
    public int insertSelective(GzhType record) {
        return 0;
    }

    @Override
    public Result<List<GzhType>> selectByPrimaryKey(Integer type) {
        try{
            List<GzhType> gzhTypes=gzhTypeMapper.selectByPrimaryKey(type);
            return ResultUtil.success(gzhTypes);
        }catch (Exception e){
            return ResultUtil.error();
        }
    }

    @Override
    public int updateByPrimaryKeySelective(GzhType record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(GzhType record) {
        return 0;
    }
}
